import request from '@/utils/request'

// 查询部门时长列表
export function list(data) {
  return request({
    url: '/system/manage/duration/list',
    method: 'post',
    data: data
  })
}
// 添加部门时长
export function add(data) {
  return request({
    url: '/system/manage/duration/add',
    method: 'post',
    data: data
  })
}
// 修改部门时长
export function edit(data) {
  return request({
    url: '/system/manage/duration/edit',
    method: 'post',
    data: data
  })
}
// 删除部门时长
export function remove(id) {
  return request({
    url: '/system/manage/duration/remove',
    method: 'DELETE',
    data: {
      id: id
    }
  })
}